//
//  VIZWarn.m
//  Young-Old
//
//  Created by 位立志 on 16/4/28.
//  Copyright © 2016年 位立志. All rights reserved.
//

#import "VIZWarn.h"

@implementation VIZWarn

- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.time forKey:@"time"];
    [aCoder encodeObject:self.tip forKey:@"tip"];
    [aCoder encodeObject:self.repeat forKey:@"repeat"];
    [aCoder encodeObject:self.sound forKey:@"sound"];
//    [aCoder encodeObject:self.isOpen forKey:@"isOpen"];
    
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        self.time = [aDecoder decodeObjectForKey:@"time"];
        self.tip = [aDecoder decodeObjectForKey:@"tip"];
        self.repeat = [aDecoder decodeObjectForKey:@"repeat"];
        self.sound = [aDecoder decodeObjectForKey:@"sound"];
        
    }
    return self;
}

- (instancetype)initWithDic:(NSDictionary *)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
}




@end
